package demo1;
class A {
    //实例内部类
    public int data1 = 1;
    public int data2 = 2;
    //实例内部类
    class B {
        public int data3 = 3;
        public int data4 = 4;
        public int data1 = 11111;
        public static final int data5 = 5;

        public void func() {
            System.out.println("实例内部类");
            System.out.println(A.this.data1);
            System.out.println(this.data1);

            System.out.println(data5);
        }
    }
    public void func() {
        System.out.println("外部类");
    }

}
public class Test {
    public static void main(String[] args) {
        A a = new A();
       A.B b = new A().new B();
        b.func();
        a.func();
    }


}
